<?php 

cons('METRIC_MINUTE', 'minute');
cons('METRIC_HOUR', 'hour');
cons('METRIC_DAY', 'day');
cons('METRIC_WEEK', 'week');
cons('METRIC_MONTH', 'month');
cons('METRIC_QUARTER', 'quarter');
cons('METRIC_YEAR', 'year');

cons('METRIC_SECONDS_PER_MINUTE', 60);
cons('METRIC_SECONDS_PER_HOUR', METRIC_SECONDS_PER_MINUTE * 60);
cons('METRIC_SECONDS_PER_DAY', METRIC_SECONDS_PER_HOUR * 24);
cons('METRIC_SECONDS_PER_WEEK', METRIC_SECONDS_PER_DAY * 7);
cons('METRIC_SECONDS_PER_YEAR', METRIC_SECONDS_PER_DAY * 366); // based on METRIC_SECONDS_PER_DAY for the calculation (more precised) instead of METRIC_SECONDS_PER_QUARTER. Use 366 to maanage the leap years
cons('METRIC_SECONDS_PER_MONTH', METRIC_SECONDS_PER_YEAR / 12);
cons('METRIC_SECONDS_PER_QUARTER', METRIC_SECONDS_PER_YEAR / 4);

?>
